package com.itheima.feign.clien;


import com.itheima.feign.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ：xiaoZhou
 * @ClassName : UserClien
 * @date ：Created in 2021/12/14 22:52
 */
@FeignClient("userservice")
public interface UserClien {
    @GetMapping("/user/getUser/{id}")
    User findById(@PathVariable("id") Long id);
}
